from apps.common.base.views import *
from apps.system.wheel.serializers import *
from apps.system.wheel.dao import WheelDao
from apps.system.wheel.filters import WheelFilter


class BaseWheelViewSet(BaseViewSet):
    serializer_class = WheelModelSerializer
    filter_class = WheelFilter
    DAO_CLASS = WheelDao
    serializer_class_export = WheelModelSerializer

    exportFieldList = [
        {'type': 'String', 'key': 'id', 'showName': 'ID', 'width': 2000,},
        {'type': 'String', 'key': 'name', 'showName': '名称', 'width': 12000,},
        {'type': 'Datetime', 'key': 'createTime', 'showName': '创建时间', 'width': 6000, 'format': '%Y-%m-%d %H:%M:%S'}
    ]